{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('edit') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ dry_path("choiceconfig_new") }}" data-route="choiceconfig_new">{{ dry_translation('new') }}</a>
        <a class="btn btn-outline btn-info" href="{{ dry_path("choiceconfig_index") }}" data-route="choiceconfig_index">{{ dry_translation('list') }}</a>
    </div>
{% endblock %}
{% block body %}
    <form method="post" class="form-horizontal" id="form">
        {{ make_choice('choice_config_form_type', rs.dry_form_type)|raw }}
        <div class="form-group">
            <label class="col-sm-2 control-label">表单文字</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_form_text" id="dry_form_text" value="{{ rs.dry_form_text }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">表单名称</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_form_name" id="dry_form_name" value="{{ rs.dry_form_name }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">键</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_key" id="dry_key" value="{{ rs.dry_key }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">选项</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_choice" id="dry_choice" value="{{ rs.dry_choice }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">默认值</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_choice_default" id="dry_choice_default" value="{{ rs.dry_choice_default }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">备注</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_note" id="dry_note" value="{{ rs.dry_note }}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">排序</label>
            <div class="col-sm-10"><input type="text" class="form-control" name="dry_sort" id="dry_sort" value="{{ rs.dry_sort }}"></div>
        </div>
        <div class="hr-line-dashed"></div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-2">
                <button class="btn btn-primary" type="submit">确定</button>
                <button class="btn btn-white" type="reset">重置</button>
            </div>
        </div>
    </form>
{% endblock %}
